package com.dhl.fin.api.domain;

import com.dhl.fin.api.common.domain.BasicDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author CuiJianbo
 * @since 2025/3/15
 */

/**
 * 家庭参数配置
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_family_config")
public class FamilyConfig extends BasicDomain {

    public FamilyConfig() {

    }

    public FamilyConfig(String familyUnicode, String name, String value, Integer sort) {
        this.familyUnicode = familyUnicode;
        this.name = name;
        this.value = value;
        this.sort = sort;
    }

    @Column(columnDefinition = "varchar(50)")
    private String familyUnicode;

    @Column(columnDefinition = "varchar(50)")
    private String name;

    @Column(columnDefinition = "varchar(50)")
    private String value;


    @Column
    private Integer sort;


}
